package com.wander.collection;

import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;

public class LinkedHashSet01 {
    public static void main(String[] args) {
        CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();
        CopyOnWriteArraySet<String> set = new CopyOnWriteArraySet<>();
        set.add("B");
        list.add("A");
        System.out.println(list.get(0));
        System.out.println(set.contains("B"));
    }
}
